package com.yonyou.brigade.third_parties.yihao.service;


import com.baomidou.mybatisplus.service.IService;
import com.yonyou.brigade.basic_init.model.BriChannel;
import com.yonyou.brigade.third_parties.yihao.model.YihaoUser;
import com.yonyou.ybzboot.uc.dto.UcUserDto;

import java.util.List;

/**
 * Created by Administrator on 2018/10/15.
 */
public interface ICLYHUserService extends IService<YihaoUser> {
    /**
     * 获取登录url
     * @param tenant
     * @param org
     * @param phone
     * @param pageType
     * @param pcOrH5
     * @param jsonExt
     * @return
     */
    String loginUrl(String tenant, String org, String phone, String pageType, String pcOrH5, String jsonExt);

    /**
     * 用户同步
     * @param tenant
     * @param orgPk
     * @param ucUserDtos
     * @param briChannel
     */
    void sysClyhUsers(String tenant, String orgPk, List<UcUserDto> ucUserDtos, BriChannel briChannel);


    /**
     * 同步用户
     * @param tenant
     * @param phone
     * @param briChannel
     */
    void sysYiHaoUser(String tenant, String phone, BriChannel briChannel);

    /**
     * 员工离职同步
     *
     * @param tenantId
     * @param orgPk
     * @param userIdList
     * @param briChannel
     */
    void quitStaff(String tenantId, String orgPk, List<String> userIdList, BriChannel briChannel);


    /**
     * 将某组织下的员工设为失效
     * @param tenantId
     * @param orgPk
     * @param briChannel
     */
    void disableUserByOrg(String tenantId, String orgPk, BriChannel briChannel);


}